|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--cnrg.itx.datax.devices.NetworkSource
Class to implement the network source. The network source acts as the network endpoint of a connection. It listens to the network pushes data into the channel.
| Constructor Summary | |
NetworkSource(Channel channel,
int iSampleSize)
Constructs a Network object. |
|
NetworkSource(Channel channel,
int iSampleSize,
boolean useFECandRTP)
Constructs a Network object. |
|
| Method Summary | |
void |
close()
Method to close a network source. |
PropertiesCollection |
getProperties()
Returns a collection of properties supported. |
Stats |
getStatistics()
Method to get the statistics from the netowrk source |
boolean |
mute(boolean mute)
Method to mute the network source. |
void |
run()
Method which acts as a thread and pushes data to the channel. |
void |
setPeerProperties(PropertiesCollection pc)
Interface to set the given properties collection into the device. |
void |
setProperties(PropertiesCollection pc)
Sets the given properties collection into the device |
void |
start()
Method to start the network source. |
void |
stop()
Method to stop a netowrk source. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public NetworkSource(Channel channel,
int iSampleSize)
throws DataException
This is the preferred constructor for this object.
NOTE: Sample size must be EQUAL across remote destination and local source!
channel - the Channel that this newtwork source is pushing intoiSampleSize - the sample size of data sent over the network
public NetworkSource(Channel channel,
int iSampleSize,
boolean useFECandRTP)
throws DataException
This is the preferred constructor for this object.
NOTE: Sample size must be EQUAL across remote destination and local source!
channel - the Channel that this newtwork source is pushing intoiSampleSize - the sample size of data sent over the networkuseFECandRTP - true if FEC and RTP have to be used| Method Detail |
public void start()
public void run()
public void stop()
public void close()
public boolean mute(boolean mute)
mute - true if the device has to be muted and false if it has to be activatedpublic Stats getStatistics()
public PropertiesCollection getProperties()
throws DataException
public void setProperties(PropertiesCollection pc)
throws DataException
pc - the set of properties to be set on the device
public void setPeerProperties(PropertiesCollection pc)
throws DataException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||